![]() ![]() ![]() ![]() ![]() Alan numitron clock Clapclap 2313/1386 SNES Pi Webserver USB Volume/USB toys Smokey amp Laser cutter WordClock ardReveil v3 SNES Arcade cabinet Game boy projects cameleon Home Presence Detector ![]() AlanFromJapan ![]() ![]() ![]() Akizukidenshi Elec-lab Rand Nerd Tut EEVblog SpritesMods AvrFreaks Gameboy Dev FLOZz' blog Switch-science Sparkfun Suzusho Datasheet Lib Reddit Elec Ermicro Carnet du maker (fr) |
dust counterLast update: Thu Jun 5 22:25:40 2025
![]() PresentationPrincipleThat cheap module has a IR led and sensor that is calibrated to return a voltage that is function of the volume of dust in the air. I put a small led bar in front since I'm not interrested by the value, an indication of the air quality is enough for me.Points of interrestImplementationBill of materialsGP2Y1010AU0F Dust Sensor how to usePinoutOn mine, the connector wire colors are (looking at the plug on the sensor, wires bottom, left to right): ![]() The dust sensor wiring schema from the doc Voltage to dust density approximation ![]() Datasheet vs. homemade approximation I decided to use 2 linear approximations, using 5V:
SchematicsFollow the schematic from the datasheet for the Dust sensor. The board is a WordClock board because it was proper in term of size. The Led bar is linked via a bunch of 1k ohm resistors to pins 27 to 15 (arduino A4 to 9), and the Dust sensor pin connected to A5 for reading and 8 (arduino) for driving the LED.Source codeIt's an arduino script because I was too lazy to write it properly in C in Atmel Studio. Code is here on GitHub.Pictures![]() ![]() ![]() Mounted on its holder, backk has a scavended Liion battery, a Liion charger and a boost converter to 5v LinksHelpful sourcesPeople who had problem with this LCD:Inspiration |
All content on this site is shared under the MIT licence (do what u want, don't sue me, hat tip appreciated) electrogeek.tokyo ~ Formerly known as Kalshagar.wikispaces.com and electrogeek.cc (AlanFromJapan [2009 - 2025]) |